

module.exports = function(sequelize, DataTypes) {
    return sequelize.define('admin', {
        id: {
            type: DataTypes.INTEGER,
            allowNull: false,
            unique: true,
            primaryKey: true
        },
        name: {
            type: DataTypes.STRING,
            allowNull: false,
            unique: true
        },
        password: {
            type: DataTypes.STRING,
            allowNull: false
        }
    }, {
        underscore: true,
        'timestamps': false,
        'createdAt': false,
        'updatedAt': false
    });
};
